 <#setting time_zone="${timeZone}" >
<link href="${rc.getContextPath()}/manage/css/dwzCustomCss/dwz.custom.css?v=${ver}" rel="stylesheet" type="text/css">
<div class="pageContent">
    <form method="post" action="${rc.getContextPath()}/manage/user/saveUser" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
        <div class="pageFormContent">
            <fieldset>
                <input type="hidden" name="navTabId" value="${navTabId!''}"> <input type="hidden" name="id" value="<#if (user.userCode)??>${user.userCode!''}</#if>"> <input type="hidden" id="org" name="org" value="${org!''}"> <input type="hidden" id="role" name="role" value="${role!''}">
                <dl class="nowrap">

                    <div style="float: left; height: 25px; width: 300px;">

                        <label style="width:60px"><@label key="userCode.C,colon">用户编码：</@label></label><input readonly="readonly" class="required" name="userCode" value="<#if (user.userCode)??>${user.userCode!''}</#if>" size="20" type="text" maxlength="40" />
                    </div>
                    <div style="float: left; height: 25px; width: 300px;">
                        <label style="width:60px"><@label key="userText.C,colon">用户描述：</@label></label><input readonly="readonly" class="required" name="userText" value="<#if (user.userText)??>${user.userText!''}</#if>" size="20" type="text" maxlength="60" />
                    </div>

                </dl>
                <dl class="nowrap">
                    <dd>
                        <div class="tabs" currentIndex="0" eventType="click" style="width: 615px;">
                            <div class="tabsHeader">
                                <div class="tabsHeaderContent">
                                    <ul>
                                        <li><a href="javascript:;"><span><@label key="detail.C">详情</@label></span> </a></li>
                                        <li><a href="javascript:;"><span><@label key="contact.C">联系</@label></span> </a></li>
                                        <li><a href="javascript:;"><span><@label key="organization.C">组织</@label></span> </a></li>
                                        <li><a href="javascript:;"><span><@label key="role.C">角色</@label></span> </a></li>
                                        <li><a href="javascript:;"><span><@label key="parameter.C">参数</@label></span> </a></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="tabsContent">
                                <div style="height:252px">
                                    <p>
                                        <label><@label key="languageCode.C,colon">语言：</@label></label> <select disabled style="width: 200px" name="languageCode" class="required" id="languageCode"> <#list languages as lan>
                                            <option value="${lan.languageCode}"<#if (user.languageCode)?? && (user.languageCode == lan.languageCode)> selected</#if>>${lan.languageName}</option> </#list>
                                        </select>
                                    </p>

                                    <p>
                                        <label><@label key="timeZoneCode.C,colon">时区：</@label></label> <select disabled style="width: 200px" name="timeZoneCode" class="required" id="timeZoneCode"> <#list timezones as tzs>
                                            <option value="${tzs.timeZoneCode!''}"<#if (user.timeZoneCode)?? && (user.timeZoneCode == tzs.timeZoneCode)> selected</#if>>${tzs.timeZoneName}</option> </#list>
                                        </select>
                                    </p>
                                    <p>
                                        <label><@label key="fromDate.C,colon">有效期自：</@label></label> <input style="width: 168px" readonly="readonly" type="text" name="fromDateStr" class="required" value="<#if (user.fromDateStr)??>${user.fromDateStr!''}</#if>" /> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a>
                                    </p>
                                    <p>
                                        <label><@label key="fromDate.C,colon">有效期自：</@label></label> <input style="width: 168px" readonly="readonly" type="text" name="toDateStr" value="<#if (user.toDateStr)??>${user.toDateStr!''}</#if>" /> <a class="inputDateButton" href="javascript:;"><@label key="select.B">选择</@label></a>
                                    </p>
                                    <p>
                                        <label><@label key="userTypeCode.C,colon">用户类型：</@label></label> <select disabled style="width: 200px" name="userTypeECode" class="required"> <#list userType as types>
                                            <option value="${types.eCode}"<#if (user.userTypeECode)?? && (user.userTypeECode == types.eCode)> selected="selected"</#if>>${types.eCodeText}</option> </#list>
                                        </select>
                                    </p>

                                    <p>
                                        <label>&nbsp;</label> <label><input disabled type="checkbox" name="systemFlag" value="1"<#if (user.systemFlag)?? && (user.systemFlag == 1)> checked="true"</#if>><@label key="systemFlag.C">系统内置</@label></label>
                                    </p>

                                    <p>
                                        <label>&nbsp;</label> <label><input disabled type="checkbox" name="lockFlag" value="1"<#if (user.lockFlag)?? && (user.lockFlag == 1)> checked="true"</#if>><@label key="lock.C">锁定</@label></label>
                                    <p>
                                </div>
                                <div class="table border" width="100%" layoutH="220">
                                    <p>
                                        <label><@label key="contactName.C,colon">名称：</@label></label> <input readonly="readonly" name="contactName" value="<#if (user.contactName)??>${user.contactName!''}</#if>" style="width: 186px" type="text" maxlength="60" />
                                    </p>
                                    <p>
                                        <label><@label key="birthDate.C,colon">出生日期：</@label></label> <input readonly="readonly" type="text" name="birthDateStr" style="width: 168px"value="<#if (user.birthDateStr)??>${user.birthDateStr!''}</#if>" /> <a class="inputDateButton" href="javascript:;">选择</a>
                                    </p>
                                    <p>
                                        <label><@label key="telephone.C,colon">电话：</@label></label> <input readonly="readonly" class="phone" name="telephone" value="<#if (user.telephone)??>${user.telephone!''}</#if>" style="width: 186px" type="text" maxlength="60" />
                                    </p>
                                    <p>
                                        <label><@label key="mobile.C,colon">移动电话：</@label></label> <input readonly="readonly" class="phone" name="mobile" value="<#if (user.mobile)??>${user.mobile!''}</#if>" style="width: 186px" type="text" maxlength="60" />
                                    </p>
                                    <p>
                                        <label><@label key="fax.C,colon">传真：</@label></label> <input readonly="readonly" class="phone" name="fax" value="<#if (user.fax)??>${user.fax!''}</#if>" style="width: 186px" type="text" maxlength="60" />
                                    </p>
                                    <p>
                                        <label><@label key="email.C,colon">E-Mail：</@label></label> <input readonly="readonly" class="email" name="email" value="<#if (user.email)??>${user.email!''}</#if>" style="width: 186px" type="text" maxlength="120" />
                                    </p>
                                    <p>
                                        <label><@label key="address.C,colon">地址：</@label></label> <input readonly="readonly" name="address" value="<#if (user.address)??>${user.address!''}</#if>" style="width: 186px" type="text" maxlength="60" />
                                    </p>
                                    <p>
                                        <label><@label key="postcode.C,colon">邮编：</@label></label> <input readonly="readonly" class="postcode" name="postcode" value="<#if (user.postcode)??>${user.postcode!''}</#if>" style="width: 186px" type="text" maxlength="60" />
                                    </p>
                                     <p>
                                        <label><@label key="wechat.C,colon">微信：</@label></label> <input readonly="readonly" class="phone" name="wechat" value="<#if (user.wechat)??>${user.wechat!''}</#if>" style="width: 186px" type="text" maxlength="60" />
                                    </p>
                                     <p>
                                        <label><@label key="smartWatch.C,colon">智能手表：</@label></label> <input readonly="readonly" class="smartWatch" name="smartWatch" value="<#if (user.smartWatch)??>${user.smartWatch!''}</#if>" style="width: 186px" type="text" maxlength="60" />
                                    </p>                                                                                                       
                                </div>
                                <div id="orgtable" style="height:252px">

                                    <table class="table border" width="100%" layoutH="250">
                                        <thead>
                                            <tr>
                                                <th width="100"><@label key="organizationCode.C">组织编号</@label></th>
                                                <th width="100"><@label key="organizationText.C">组织名称</@label></th>
                                                <th width="100"><@label key="path.C">路径</@label></th>
                                            </tr>
                                        </thead>
                                        <tbody id="orgtbody">
                                            <#if orgs??><#if (orgs?size>0)> <#list orgs as org>
                                            <tr id="org_${org.organizationCode!''}" target="org_code" rel="${org.organizationCode!''}">

                                                <td width="100">${org.organizationCode!''}</td>
                                                <td width="100">${org.organizationText!''}</td>
                                                <td width="100">${org.path!''}</td>
                                            </tr>
                                            </#list> </#if> </#if>
                                        </tbody>
                                    </table>

                                </div>
                                <div style="height:252px">


                                    <table class="table border" width="100%" layoutH="250">
                                        <thead>
                                            <tr>
                                                <th width="100"><@label key="roleCode.C">角色</@label></th>
                                                <th width="100"><@label key="roleText.C">描述</@label></th>
                                            </tr>
                                        </thead>
                                        <tbody id="roletbody">
                                            <#if roles??><#if (roles?size>0)> <#list roles as role>
                                            <tr id="role_${role.roleCode!''}" target="role_code" rel="${role.roleCode!''}">

                                                <td width="100">${role.roleCode!''}</td>
                                                <td width="100">${role.roleText!''}</td>
                                            </tr>
                                            </#list> </#if> </#if>
                                        </tbody>
                                    </table>

                                </div>
                                <div style="height:252px">
                                    <table class="table border" width="100%" layoutH="250">
                                        <thead>
                                            <tr>
                                                <th width="100"><@label key="parameterCode.C">参数编码</@label></th>
                                                <th width="100"><@label key="parameterValue.C">参数值</@label></th>
                                                <th width="100"><@label key="parameterText.C">参数描述</@label></th>
                                            </tr>
                                        </thead>
                                        <tbody>
                                            <#if paras??><#if (paras?size>0)> <#list paras as para>
                                            <tr id="${para.rolecode!''}" target="para_code" rel="${para.rolecode!''}">
                                                <td>${para.parameterCode!''}</td>
                                                <td>${para.parameterValue!''}</td>
                                                <td>${para.parameterText!''}</td>
                                            </tr>
                                            </#list> </#if> </#if>
                                        </tbody>
                                    </table>
                                </div>
                            </div>
                            <div class="tabsFooter">
                                <div class="tabsFooterContent"></div>
                            </div>
                        </div>
                    </dd>
                </dl>
            </fieldset>
        </div>
                <#if (user.userCode)??> 
            <#assign createInfo=user/>
            <#include "/common/createInfo.html">
        </#if>
        <div class="formBar">
            <ul>
                <li>
                    <div class="buttonActive">
                        <div class="buttonContent">
                            <button type="button" class="close"><@label key="close.B">关闭</@label></button>
                        </div>
                    </div>
                </li>
            </ul>
        </div>

    </form>
</div>



